<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/communication.js?time=' + sys_get_time();
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			var page = sys_fill_parm('queryCommunicationForm');
			queryCommunication_communication(page);
			excelImport();
		}
	});
});

function exportExcel() {
	window.location.href = "${contextPath}m/communication-excelExport.html?" + $('#queryCommunicationForm').serialize();
	return false;
}
</script>
<#import "/freemarker/modeltype.ftl" as mt>
<form id="queryCommunicationForm">
<table class="search_term_table">
	<tr><th>姓名</th>
		<td><input type="text" class="form-control" type="name" name="name" style="width:150px;"/><input type="hidden" name="cu" value="${cu_code}"/></td>
		<th>类型</th>
		<td>
		<select type="text"  name="type" class="uniformselect" style="width:160px;">
			<Option value="">所有</Option>
			<option value="1">个人</option>
			<option value="2">公共</option>
			<option value="3">公司</option>
			</select>
		</td>
		<td style="text-align:right;">
		<button class="btn btn-info" onclick="javascript:queryCommunication_communication(); return false;"><i class="icon-search"></i> 查 询 </button>
		<button class="btn btn-success" onclick="javascript:sys_load_handle('communication-edit'); return false;"><i class="icon-file"></i> 添 加</button>
		</td>
	</tr>
	<tr><th>创建时间</th>
		<td>
			<input id="start" type="text" style="width:80px;" name="start" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});">
			至  
			<input id="end" type="text" style="width:80px;" name="end" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});">
		</td>
		<th>公司</th>
		<td><input type="text" class="form-control" type="company" name="company" style="width:150px;"/></td>
		<td style="text-align:right;">
			<button class="btn btn-info" onclick="javascript:exportExcel(); return false;"><i class="icon-file"></i> 导 出</button>
			<button class="btn btn-info" id="excelBtn"><i class="icon-file"></i> 导 入</button>
			<span id="excelBtn_span"></span>
		</td>
	</tr>
</table>
</form>
<div id="communicationResultList"></div>
